package com.wy.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.core.SpringVersion;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 *
 * </p>
 *
 * @author 王昭贵
 * @since 2023-01-29
 */
@Data
@ApiModel(value = "Reserve对象", description = "")
public class Reserve implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("客户id")
    private Integer customerId;

    @ApiModelProperty("预约医生id")
    private Integer userId;

    @ApiModelProperty("描述")
    private String description;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty("预约就诊日期")
    private Date reserveTime;

    @ApiModelProperty("预约状态")
    private Integer treateStatus;

    @ApiModelProperty("宠物id")
    private Integer petId;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private String petName;


    @TableField(exist = false)
    private double weight;

    @TableField(exist = false)
    private String doctorName;

    @TableField(exist = false)
    private String typeName;
    @TableField(exist = false)
    private int age;

    @TableField(exist = false)
    private String customerName;
    @TableField(exist = false)
    private String image;

}
